package com.zhentao.controller;

import com.zhentao.service.ReflexZoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/reflexZone")
public class ReflexZoneController {
    @Autowired
    ReflexZoneService  reflexZoneService;
    @RequestMapping("/reflexAll")
    public Object reflexAll(){
        return reflexZoneService.list();
    }
    @RequestMapping("/reflexOne")
    public Object reflexAll(Integer id){
        return reflexZoneService.getById(id);
    }
}
